package com.sino.second.business.service;

import com.sino.second.bean.TblEmailset;
import com.sino.second.business.IEmailService;
import com.sino.second.dao.IMailSendDAO;
import com.sino.util.page.PagerModel;

public class EmailServiceImpl implements IEmailService {
	private IMailSendDAO mailSendDAO;//邮件发送人设置
	
	public TblEmailset findEmeilSetById(Integer id) {
		TblEmailset te=this.getMailSendDAO().findEmeilSetById(id);
		return te;
	}

	public PagerModel findEmeilSetList(String hqlWhere, String year) {
	    PagerModel pm=this.getMailSendDAO().findEmeilSetList(hqlWhere, year);
	 	return pm;
	}

	public void saveOrUpdate(Object o) {
	this.getMailSendDAO().saveOrUpdate(o);
	}
	
	

	public IMailSendDAO getMailSendDAO() {
		return mailSendDAO;
	}

	public void setMailSendDAO(IMailSendDAO mailSendDAO) {
		this.mailSendDAO = mailSendDAO;
	}

}
